from django.apps import AppConfig

class CommonConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'common'
    verbose_name = '通用功能'
    
    def ready(self):
        """应用准备就绪时执行"""
        try:
            import common.models  # 导入模型
        except ImportError:
            pass 